/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo3;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PersonTest02 {
    public static void main(String[] args) {
       Person02 p1 = new Person02("阿黄","0771-7222345","横县茉莉花广场"); 
       Person02 p2 = new Person02("阿红","0772-7222345","横县茉莉花广场"); 
       Person02 p3 = new Person02("阿黑","0773-7222345","横县茉莉花广场"); 
      
       List l=new ArrayList();
       l.add(p1);
       l.add(p2);
       l.add(p3);
       
       
        System.out.println("ArrayList的元素是:");
        System.out.println(l);
       
       
    }

}
